package com.cqnu.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时作业
 * 
 * @author Administrator
 * 
 */
@Component
public class FindLossCustomerJob {

	/**
	 * 每天两点作业
	 */
	 @Scheduled(cron="0 0 2 * * ?")
	//@Scheduled(cron = "0/5 * *  * * ? ")
	// 每5秒执行一次
	public void work() {
		System.out.println("--------------定时作业-----------");
		// customerService.checkCustomerLoss();
	}
}
